package top.zhaoyuliu.logbook.client.connect.packet;

/**
 * 
 * Copyright © 2021 Arain. All rights reserved.
 *
 * @Title: PacketType.java
 * @Prject: logbook-client
 * @Package: top.zhaoyuliu.logbook.client.connect.packet
 * @Description: <功能详细描述>
 * @author: Arain
 * @date: 2021年1月22日 下午4:01:30
 * @version: V1.0
 */
public interface PacketType {
	
	byte CLIENT_HEART_BEAT = -1;
	
	/**
	 * 心跳包
	 */
	byte HEART_BEAT = 0;

	/**
	 * 批量
	 */
	byte LOG = 1;

	/**
	 * 参数上报
	 */
	byte PARA = 2;

	/**
	 * 链路上报
	 */
	byte TRACK = 3;
	
	/**
	 * 查询节点任务数
	 */
	byte SELECTTASK = 4;
	
	/**
	 * leader选举
	 */
	byte ELECTION = 5;
	
	/**
	 * 选举响应
	 */
	byte ELECTIONRESULT = 6;
}
